------------------------------------------------------------------------------------------------------
       log:  nsw1889.repfile.log
  log type:  text
 opened on:   2 Jul 2018, 16:59:14

. * Label included variables

. 
. 
. 
. label var electorate "Electorate official name"

. 
. label var areasqkm "Electorate's area, in square kilometers"

. 
. label var prot1889 "Votes for Protectionists in 1889 New South Wales election"

. 
. label var free1889 "Votes for Free Traders in 1889 New South Wales election"

. 
. label var inf1889 "Votes for independents in 1889 New South Wales election"

. 
. label var seats1889 "District magnitude (i.e., number of seats) in 1889"

. 
. label var exporter "Export-intense electorate (1 = yes; 0 = no)"

. 
. label var minecent "Mining center in 1880s, per Atlas of Australian Resources"

. 
. label var sheeppercap "Sheep per capita in 1891 Census"

. 
. label var sheep91 "Number of sheep in electorate in 1891 Census"

. 
. label var totalpop "Electorate's total population in 1891 Census"

. 
. label var under21m "Electorate's male, under-21 population in 1891 Census"

. 
. label var over20m "Electorate's male, 21-and-over population in 1891 Census"

. 
. label var under21f "Electorate's female, under-21 population in 1891 Census"

. 
. label var over20f "Electorate's female, 21-and-over population in 1891 Census"

. 
. label var chinese "Electorate's population identified as Chinese in 1891 Census"

. 
. label var mallages "Electorate's total male population in 1891 Census"

. 
. label var fallages "Electorate's total female population in 1891 Census"

. 
. label var t50andunder55 "Electorate's population aged 50 to 54 in 1891 Census"

. 
. label var t55andunder60 "Electorate's population aged 55 to 59 in 1891 Census"

. 
. label var t60andunder65 "Electorate's population aged 60 to 64 in 1891 Census"

. 
. label var t65andunder70 "Electorate's population aged 65 to 69 in 1891 Census"

. 
. label var t70andunder75 "Electorate's population aged 70 to 74 in 1891 Census"

. 
. label var t75andunder80 "Electorate's population aged 75 to 79 in 1891 Census"

. 
. label var t80andunder85 "Electorate's population aged 80 to 84 in 1891 Census"

. 
. label var t85andunder90 "Electorate's population aged 85 to 89 in 1891 Census"

. 
. label var t90andunder95 "Electorate's population aged 90 to 94 in 1891 Census"

. 
. label var t95andunder100 "Electorate's population aged 95 to 99 in 1891 Census"

. 
. label var t100 "Electorate's population aged 100 in 1891 Census"

. 
. label var t101 "Electorate's population aged 101 in 1891 Census"

. 
. label var t102 "Electorate's population aged 102 in 1891 Census"

. 
. label var t103 "Electorate's population aged 103 in 1891 Census"

. 
. label var t104 "Electorate's population aged 104 in 1891 Census"

. 
. label var t107 "Electorate's population aged 107 in 1891 Census"

. 
. label var rdwrto20m "Over-20 males who could read and write English in 1891 Census"

. 
. label var onlyrdo20m "Over-20 males who could read but not write English in 1891 Census"

. 
. label var rwforo20m "Over-20 males who could read and write non-English language in 1891 Census"

. 
. label var rdforo20m "Over-20 males who could read but not write non-English language in 1891 Census"

. 
. label var rdwrto20f "Over-20 females who could read and write English in 1891 Census"

. 
. label var onlyrdo20f "Over-20 females who could read but not write English in 1891 Census"

. 
. label var rwforo20f "Over-20 females who could read and write non-English language in 1891 Census"

. 
. label var rdforo20f "Over-20 females who could read but not write non-English language in 1891 Censu
> s"

. 
. label var weight "Proportion of electorate population living in municipal areas"

. 
. label var otheuro "Population born in mainland Europe, per Statistical Register"

. 
. label var infirmpct "Percent of population with infirmities in 1891 Census"

. 
. label var uninhab "Percent of buildings uninhabited in 1891 Census"

. 
. label var construct "Percent of buildings under construction in 1891 Census"

. 
. 
. 
. 
. 
. * Generate derived variables

. 
. 
. 
. gen chipop = 100*chinese/totalpop

. 
. label var chipop "Percent of population of Chinese descent, per 1891 Census"

. 
. gen protect = 100*prot1889/(prot1889+free1889+inf1889)
(10 missing values generated)

. 
. label var protect "Percent of votes in 1889 going to Protectionist party"

. 
. * This "protect" variable is the basis for Figure 1

. 
. gen popdns = ln(totalpop/areasqkm)

. 
. label var popdns "Natural logarithm, population per square kilometer"

. 
. gen pop50up = 100*(t50andunder55+t55andunder60+t60andunder65+t65andunder70+t70andunder75+t75andunder
> 80+t80andunder85+t85andunder90+t90andunder95+t95andunder100+t100+t101+t102+t103+t104+t107)/totalpop

. 
. label var pop50up "Percent of population aged 50 or above"

. 
. gen young = 100*( under21m+under21f)/ totalpop

. 
. label var young "Percent of population aged 20 or below"

. 
. gen sexratio = 100*mallages/fallages

. 
. label var sexratio "Males per 100 females in electorate population"

. 
. gen literate = 100*(rdwrto20m+rdwrto20f+rwforo20m+rwforo20f+(onlyrdo20m+rdforo20m+onlyrdo20f+rdforo2
> 0f)/2)/(over20m+over20f)

. 
. label var literate "Literacy rate in any language (adjusted for semi-literacy)"

. 
. gen foreign = 100*(rwforo20m+rdforo20m+rwforo20f+rdforo20f)/(over20m+over20f)

. 
. label var foreign "Literacy rate in non-English languages (adjusted for semi-literacy)"

. 
. gen expchipop = exporter*chipop

. 
. label var expchipop "Interaction: Export-oriented electorate times Chinese population share"

. 
. gen explit = exporter*literate

. 
. label var explit "Interaction: Export-oriented electorate times literacy rate"

. 
. 
. 
. 
. 
. * Table 1 regressions

. 
. 
. 
. reg protect chipop exporter popdns pop50up young sexratio if prot1889*free1889 > 0 [iweight = seats1
> 889], r
(sum of wgt is   1.1500e+02)

Linear regression                               Number of obs     =         58
                                                F(6, 51)          =       9.14
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4379
                                                Root MSE          =     15.413

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   2.463444   1.197009     2.06   0.045     .0603487    4.866539
    exporter |  -1.217751   6.217915    -0.20   0.846    -13.70074    11.26524
      popdns |   .0340153   1.378672     0.02   0.980    -2.733785    2.801816
     pop50up |  -1.785818   .9999741    -1.79   0.080     -3.79335    .2217139
       young |   1.673301   .9522121     1.76   0.085    -.2383449    3.584946
    sexratio |   .4770918   .2215881     2.15   0.036     .0322351    .9219484
       _cons |  -75.73938   83.04733    -0.91   0.366    -242.4638    90.98509
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio if prot1889*free1889 > 0, r

Linear regression                               Number of obs     =         58
                                                F(6, 51)          =       6.87
                                                Prob > F          =     0.0000
                                                R-squared         =     0.3499
                                                Root MSE          =     15.711

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   2.278435   1.113285     2.05   0.046     .0434223    4.513447
    exporter |   1.152725   5.803776     0.20   0.843    -10.49884    12.80429
      popdns |   .8310276   1.351261     0.62   0.541    -1.881742    3.543797
     pop50up |  -1.148449   .7879363    -1.46   0.151    -2.730297    .4333995
       young |   1.953958   .9649637     2.02   0.048     .0167125    3.891204
    sexratio |   .4674977    .197174     2.37   0.022     .0716544     .863341
       _cons |  -100.2656   79.30417    -1.26   0.212    -259.4754    58.94415
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio infirmpct if prot1889*free1889 > 0 [iweigh
> t = weight], r
(sum of wgt is   2.8144e+01)

Linear regression                               Number of obs     =         54
                                                F(7, 46)          =      16.03
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4246
                                                Root MSE          =      15.29

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   3.146804    1.68836     1.86   0.069    -.2516877    6.545296
    exporter |   4.227063   7.150443     0.59   0.557    -10.16603    18.62016
      popdns |   1.571081   1.542337     1.02   0.314    -1.533482    4.675644
     pop50up |  -.8824444   1.539383    -0.57   0.569    -3.981061    2.216173
       young |     2.1215   1.118756     1.90   0.064    -.1304383    4.373439
    sexratio |   .4888465   .2368863     2.06   0.045     .0120191     .965674
   infirmpct |   .1966362   1.150564     0.17   0.865    -2.119329    2.512601
       _cons |  -120.2341   94.48124    -1.27   0.210    -310.4149    69.94678
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio uninhab construct if prot1889*free1889 > 0
>  [iweight = weight], r
(sum of wgt is   2.8144e+01)

Linear regression                               Number of obs     =         54
                                                F(8, 45)          =       8.92
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4341
                                                Root MSE          =      15.33

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   3.144603    1.55255     2.03   0.049      .017607    6.271598
    exporter |   3.618463    7.30586     0.50   0.623    -11.09629    18.33322
      popdns |   1.761119   1.386538     1.27   0.211    -1.031512     4.55375
     pop50up |   -.717256   .6456612    -1.11   0.273    -2.017684    .5831725
       young |    2.14177   1.134799     1.89   0.066    -.1438325    4.427373
    sexratio |   .5140842   .2229675     2.31   0.026     .0650046    .9631638
     uninhab |   .7388186    1.21317     0.61   0.546    -1.704632    3.182269
   construct |   2.929748   6.985198     0.42   0.677    -11.13916    16.99866
       _cons |  -132.1528   88.74909    -1.49   0.143    -310.9027    46.59702
------------------------------------------------------------------------------

. 
. 
. 
. 
. 
. * Table 2 regressions

. 
. 
. 
. reg protect chipop exporter popdns pop50up young sexratio otheuro if prot1889*free1889 > 0 [iweight 
> = weight], r
(sum of wgt is   2.5165e+01)

Linear regression                               Number of obs     =         51
                                                F(7, 43)          =       9.32
                                                Prob > F          =     0.0000
                                                R-squared         =     0.5021
                                                Root MSE          =     14.668

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   3.094807    1.71477     1.80   0.078    -.3633565    6.552972
    exporter |   3.053739   7.330068     0.42   0.679    -11.72875    17.83623
      popdns |   2.647363   1.426262     1.86   0.070    -.2289672    5.523694
     pop50up |   -.131713   .7712113    -0.17   0.865    -1.687009    1.423583
       young |   2.846307   1.583789     1.80   0.079    -.3477083    6.040321
    sexratio |   .7242657   .3036976     2.38   0.022     .1118012     1.33673
     otheuro |  -9.653318   4.710038    -2.05   0.047    -19.15202   -.1546204
       _cons |  -181.3026     122.92    -1.47   0.148    -429.1945    66.58927
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio foreign if prot1889*free1889 > 0 [iweight 
> = seats1889], r
(sum of wgt is   1.1500e+02)

Linear regression                               Number of obs     =         58
                                                F(7, 50)          =       8.37
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4392
                                                Root MSE          =     15.549

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |    3.61295   2.821946     1.28   0.206    -2.055096    9.280996
    exporter |  -1.300542   6.335961    -0.21   0.838    -14.02669    11.42561
      popdns |   .0511767   1.398378     0.04   0.971    -2.757549    2.859902
     pop50up |   -1.78513   1.004635    -1.78   0.082    -3.802998    .2327384
       young |   1.696249   .9598034     1.77   0.083    -.2315725    3.624071
    sexratio |   .4793444   .2239167     2.14   0.037     .0295944    .9290943
     foreign |  -.8858052   2.207014    -0.40   0.690    -5.318724    3.547114
       _cons |  -76.80444   83.77052    -0.92   0.364    -245.0625     91.4536
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio literate if prot1889*free1889 > 0 [iweight
>  = seats1889], r
(sum of wgt is   1.1500e+02)

Linear regression                               Number of obs     =         58
                                                F(7, 50)          =       8.01
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4404
                                                Root MSE          =     15.532

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   2.291463   1.302844     1.76   0.085    -.3253765    4.908302
    exporter |  -1.577021   6.545136    -0.24   0.811    -14.72331    11.56927
      popdns |  -.0520306   1.324116    -0.04   0.969    -2.711595    2.607534
     pop50up |  -2.350451   1.321405    -1.78   0.081    -5.004572    .3036694
       young |   1.408682   .8211026     1.72   0.092    -.2405508    3.057915
    sexratio |    .445717   .1962645     2.27   0.027     .0515082    .8399257
    literate |  -.5627621   1.118239    -0.50   0.617    -2.808811    1.683286
       _cons |  -.5014019   131.0389    -0.00   0.997    -263.7008     262.698
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio literate explit if prot1889*free1889 > 0 [
> iweight = seats1889], r
(sum of wgt is   1.1500e+02)

Linear regression                               Number of obs     =         58
                                                F(8, 49)          =       6.87
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4479
                                                Root MSE          =     15.583

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   2.921867   1.426591     2.05   0.046     .0550245    5.788709
    exporter |  -140.5779   153.2451    -0.92   0.363    -448.5355    167.3798
      popdns |   .0219411    1.33752     0.02   0.987    -2.665905    2.709787
     pop50up |  -2.549176   1.403277    -1.82   0.075    -5.369165    .2708143
       young |   1.353579   .8424326     1.61   0.115    -.3393524    3.046511
    sexratio |   .3883371   .1919079     2.02   0.048     .0026837    .7739906
    literate |  -1.200733   1.445286    -0.83   0.410    -4.105144    1.703679
      explit |   1.535338     1.6846     0.91   0.367    -1.849993    4.920669
       _cons |   69.15474   160.5978     0.43   0.669    -253.5786    391.8881
------------------------------------------------------------------------------

. 
. reg protect chipop exporter popdns pop50up young sexratio expchipop if prot1889*free1889 > 0 [iweigh
> t = seats1889], r
(sum of wgt is   1.1500e+02)

Linear regression                               Number of obs     =         58
                                                F(7, 50)          =       7.44
                                                Prob > F          =     0.0000
                                                R-squared         =     0.4390
                                                Root MSE          =     15.552

------------------------------------------------------------------------------
             |               Robust
     protect |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      chipop |   3.513677   3.894284     0.90   0.371    -4.308222    11.33558
    exporter |  -.2075233   6.730921    -0.03   0.976    -13.72698    13.31193
      popdns |  -.0104368   1.432153    -0.01   0.994    -2.887001    2.866128
     pop50up |  -1.781799   1.019614    -1.75   0.087    -3.829754    .2661562
       young |   1.705863   .9759041     1.75   0.087    -.2542985    3.666024
    sexratio |   .4796234   .2273605     2.11   0.040     .0229565    .9362903
   expchipop |  -1.278965   4.009389    -0.32   0.751    -9.332059     6.77413
       _cons |  -78.25854   85.06187    -0.92   0.362    -249.1103    92.59326
------------------------------------------------------------------------------

. 
. 
. 
. 
. 
. * Appendix: descriptive statistics and correlation matrix

. 
. 
. 
. sum protect chipop exporter popdns pop50up young sexratio infirmpct uninhab construct otheuro foreig
> n literate explit expchipop seats1889 weight if prot1889*free1889 > 0 

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
     protect |         58    50.53053    18.43067   8.421053    92.2072
      chipop |         58    1.487329    1.681093   .0272109    8.01434
    exporter |         58    .4827586    .5040669          0          1
      popdns |         58    2.235688    3.125167  -2.949766   9.771308
     pop50up |         58    10.63985    2.293057   5.936782   22.25743
-------------+---------------------------------------------------------
       young |         58    51.34212    5.177964   33.09911   57.67117
    sexratio |         58    121.6946    25.89764   89.28162   253.9267
   infirmpct |         54    2.191073    2.270378   .5216324   17.39317
     uninhab |         54    6.312802    2.968618   1.431493   17.68707
   construct |         54    .6027372    .4526123          0    2.13205
-------------+---------------------------------------------------------
     otheuro |         51     1.43494    .5583239   .4274809   2.641803
     foreign |         58    2.414909    2.420522   .2440347   12.03566
    literate |         58    90.98694    3.355028   81.36456   97.11611
      explit |         58    43.20652    45.14965          0   93.46286
   expchipop |         58    1.152331    1.807193          0    8.01434
-------------+---------------------------------------------------------
   seats1889 |         58    1.982759    1.084037          1          4
      weight |         54    .5211939      .32851   .0884899          1

. 
. pwcorr protect chipop exporter popdns pop50up young sexratio infirmpct uninhab construct otheuro for
> eign literate explit expchipop seats1889 weight if prot1889*free1889 > 0

             |  protect   chipop exporter   popdns  pop50up    young sexratio
-------------+---------------------------------------------------------------
     protect |   1.0000 
      chipop |   0.2970   1.0000 
    exporter |   0.3612   0.5215   1.0000 
      popdns |  -0.4324  -0.3136  -0.5995   1.0000 
     pop50up |  -0.1116   0.2813   0.1819  -0.1646   1.0000 
       young |   0.1637  -0.1766   0.0842  -0.2826  -0.2649   1.0000 
    sexratio |   0.3530   0.3868   0.4347  -0.5444   0.2066  -0.5316   1.0000 
   infirmpct |  -0.2281  -0.0583  -0.1618   0.2238   0.7022  -0.3081   0.0152 
     uninhab |   0.0876  -0.1822  -0.1521   0.0183  -0.0543   0.2625  -0.1972 
   construct |   0.1409   0.1264   0.3224  -0.2761  -0.0181  -0.0900   0.2779 
     otheuro |  -0.0871   0.2423   0.1052  -0.0646   0.1774  -0.4973   0.3955 
     foreign |   0.2510   0.9295   0.4804  -0.2938   0.2573  -0.1109   0.3161 
    literate |  -0.2252  -0.3382  -0.4321   0.5058  -0.5667  -0.3254  -0.1592 
      explit |   0.3615   0.5113   0.9992  -0.6003   0.1762   0.0695   0.4479 
   expchipop |   0.3526   0.9457   0.6658  -0.4668   0.2495  -0.0491   0.4297 
   seats1889 |  -0.0213  -0.0577  -0.2092   0.5698  -0.2721  -0.3859  -0.1261 
      weight |  -0.5345  -0.2388  -0.5036   0.8311  -0.0908  -0.4426  -0.3269 

             | infirm~t  uninhab constr~t  otheuro  foreign literate   explit
-------------+---------------------------------------------------------------
   infirmpct |   1.0000 
     uninhab |   0.0045   1.0000 
   construct |  -0.0798  -0.2949   1.0000 
     otheuro |   0.2458  -0.0280   0.1847   1.0000 
     foreign |  -0.0941  -0.1870   0.1210   0.2029   1.0000 
    literate |  -0.3819  -0.1284   0.1753  -0.0089  -0.2359   1.0000 
      explit |  -0.1612  -0.1617   0.3418   0.1094   0.4765  -0.4103   1.0000 
   expchipop |  -0.1206  -0.1820   0.2163   0.2229   0.8698  -0.4098   0.6562 
   seats1889 |   0.0074  -0.0164   0.0875   0.3022  -0.0903   0.4692  -0.2046 
      weight |   0.2696  -0.0943  -0.1532   0.1098  -0.2362   0.5022  -0.4980 

             | expchi~p sea~1889   weight
-------------+---------------------------
   expchipop |   1.0000 
   seats1889 |  -0.1733   1.0000 
      weight |  -0.3983   0.4946   1.0000 

. log close
       log:  nsw1889.repfile.log
  log type:  text
 closed on:   2 Jul 2018, 16:59:27
------------------------------------------------------------------------------------------------------
